import { post } from '../../http'
import store from '@/store'

//供应商报名
export const signupBiddingMethod = ({
  sugarIds,
  isdel,
  bidId
}) => {
  return post('/FTKJWLHYPT/bidAdminister/signupBiddingMethod', {
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          sugarIds,
          isdel,
          bidId,
          userId: store.state.user.UserId_DX_H,
          creator: store.state.user.USERNAME_DX_H,
          fltId: store.state.user.FLT_UUID_DX_H,
          dptId: store.state.user.DPTID_DX_H,
        }
      }
    }
  })
}

//供应商取消报名
export const delSignupMethod = ({
  isdel,
  bidId,
  sugarIds
}) => {
  return post('/FTKJWLHYPT/bidAdminister/delSignupMethod', {
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          isdel,
          bidId,
          sugarIds,
          fltId: store.state.user.FLT_UUID_DX_H,
          userId: store.state.user.UserId_DX_H,
          creator: store.state.user.USERNAME_DX_H,
        }
      }
    }
  })
}

